/**
 * main activity.
 * @author William
 * 2012-2-26
 */
package com.ytu.cloudbackup.face;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class CloudBackupActivity extends Activity {

	private Button btn_sub;
	private Button btn_cancel;
	private EditText user;
	private EditText psd;
	
	private void init(){
		btn_sub = (Button) findViewById(R.id.submit);
		btn_cancel = (Button) findViewById(R.id.cancel);
		user = (EditText) findViewById(R.id.user);
		psd = (EditText) findViewById(R.id.psd);
		
		btn_sub.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				loginned();
			}
			
		});
		
		btn_cancel.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				
			}
			
		});
	}
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		init();
//		loginned();
	}
	
	public void loginned() {
		Intent i = new Intent(this,FileExplorer.class);
		startActivity(i);
		
	}
}